package communication.message;

import java.util.ArrayList;

/***
 * 
 * @author Bogusław Zaręba
 *
 */

public class GameState {
	private ArrayList<Point> points = new ArrayList<Point>();
	
	public void addPoint(Point point) {
		points.add(point);
	}
	
	public ArrayList<Point> getPoints() {
		return points;
	}
	
	public String toString() {
		String res = XMLTagCreator.openTag("gameState") + '\n';
		for(Point point : points)
			res += '\t' + point.toString() + '\n';
		return res += XMLTagCreator.closeTag("gameState");
	}
}
